package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.KnowledgeSport;

import java.util.List;
import java.util.Map;

public interface KnowledgeSportMapper {

    Page<KnowledgeSport> selectByCondition(String queryString);

    void add(KnowledgeSport knowledgeSport);

    void edit(KnowledgeSport knowledgeSport);

    void delete(Integer id);

    List<KnowledgeSport> findAll();

    KnowledgeSport findById(Integer knowledgeSportId);

    void addAssociation(Map map);

    List<Integer> findIdsByInterId(int interId);

}
